<!--
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2023-01-02 19:52:30
 * @LastEditors: 朱安武 549410045@qq.com
 * @LastEditTime: 2023-01-06 17:24:03
 * @FilePath: \elementUi\src\components\MainAside.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
      <el-menu
        active-text-color="#ffd04b"
        background-color="#545c64"
        :default-active="menuIndex"
        router
      >
        <el-menu-item index="/mainPage/mainHome">
          <template #title>
            <span>{{ aisdeList[0] }}</span>
          </template>
          </el-menu-item>
        <el-menu-item index="/mainPage/bannerlist">
          <template #title>
            <span>{{ aisdeList[1] }}</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/mainPage/editor">
          <template #title>
            <span>{{ aisdeList[2] }}</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/mainPage/echart">
          <template #title>
            <span>{{ aisdeList[3] }}</span>
          </template>
        </el-menu-item>
      </el-menu>
</template>

<script lang="ts" setup>
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from '@element-plus/icons-vue';
import { ref } from 'vue';
import {router} from '../router';
import { aisdeList } from '../stores/admin-store'

const menuIndex = ref(location.pathname)

console.log(history);

</script>
